package auction.securechannel;

public abstract class ChannelDecorator implements Channel{
	protected Channel decoratedChannel;

	public ChannelDecorator(Channel decoratedChannel) {
		this.decoratedChannel = decoratedChannel; //the channel being decorated
	}
	
	public void send(byte[]  message)  {
		decoratedChannel.send(message); //delegation
	}

	public byte[]  receive(){
		return decoratedChannel.receive(); //delegation
	}

}
